//
//  NSString+OASizeExtension.h
//  OASDK_Works
//
//  Created by ChenJie on 3/29/20.
//  Copyright © 2020 Mist. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

@interface NSString (OASizeExtension)

- (CGSize)oa_sizeWithWidth:(CGFloat)width font:(UIFont *)font;

- (CGSize)oa_sizeWithWidth:(CGFloat)width font:(UIFont *)font numberOfLines:(NSInteger)numberOfLines;

- (CGSize)oa_singleLineSizeWithWidth:(CGFloat)width font:(UIFont *)font;


/*
 * size with padding
 */

- (CGSize)oa_sizeWithWidth:(CGFloat)width font:(UIFont *)font padding:(UIEdgeInsets)padding;

- (CGSize)oa_sizeWithWidth:(CGFloat)width font:(UIFont *)font numberOfLines:(NSInteger)numberOfLines padding:(UIEdgeInsets)padding;

- (CGSize)oa_singleLineSizeWithWidth:(CGFloat)width font:(UIFont *)font padding:(UIEdgeInsets)padding;

@end
